{extend name="pc/user/layout"/}
{block name="main"}
 <div class="g-1400 g-container" id="pjax-container">
        
<div class="bg-bai b rx3">
    <div class="t-v t-t">
        <div class="c-sidebar c-sidebar-h pb5 br">
            <div class="c-sidebar-title t-v hui bb">自助购买</div>
            <ul class="c-nav click-nav">
                <li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'vip'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-vip"></i></div>
                    <div>开通VIP会员</div>
                </a></li>
                <li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'peie'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-shuju"></i></div>
                    <div>购买挂机配额</div>
                </a></li>
                <li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'rmb'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-moneybag"></i></div>
                    <div>充值账户余额</div>
                </a></li>
				<li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'daili'])}" class="t-v" data-pjax="">
					<div><i class="icon icon-friend"></i></div>
					<div>开通平台代理</div>
				</a></li>
                {if condition="config('sys_is_ktfz') eq 1 "}
                <li class="active"><a href="{:url('pc/index',['act'=>'shop','s'=>'fz'])}" class="t-v" data-pjax="">
					<div><i class="icon icon-cascades"></i></div>
					<div>搭建高级主站</div>
				</a></li>
				{/if}
            </ul>
        </div>
<div class="c-content bl">
    <div class="g-title t-v pl4 bb">
        <div class="col-8 h t-v bold">搭建高级主站</div>
        <div class="col-4 t-v t-r"></div>
    </div>
    <div class="g-content p5 f3 hui bb "><p>无需建站技术，一键搭建和本站相同的网站，免管理，免维护，自己做站长，后台支持全页面自定义设置，支持自定义代理价格、分站价格设定，无限招收代理，高额的利润回报，一键搭建，立即拥有属于自己的秒赞网站。</p></div>
    <div class="g-content p5">
		<div class="in-text" style="width:580px;">
			<dt class="bold pr4">网站名称：</dt>
			<dd><input type="text" class="form p0 h11 bb bb-hui" name="webname" placeholder="请输入你要搭建的网站名称" value=""></dd>
		</div>
		<hr>
		<div class="in-text" style="width:580px;">
			<dt class="bold pr4">域名前缀：</dt>
			<dd><input type="text" class="form p0 h11 bb bb-hui" name="qz" placeholder="请输入你要搭建的网站域名前缀,例如www" value=""></dd>
		</div>
		<hr>
		<div class="in-text" style="width:580px;">
			<dt class="bold pr4">选择域名：</dt>
			<dd><select class="form w h8 bb" name="domain">
                            {volist name="fzurls" id="data"}
                            <option value="{$data}">{$data}</option>
                            {/volist}
                        </select></dd>
		</div>
		<hr>
        <div class="t-v">
            <div class="bold pr3">开通时长：</div>
            <div>
                <label class="i-checks"><input type="radio" name="time" value="1" onclick="ajax_get_fz(1);"><i></i>一周
                                    </label>
                <label class="i-checks ml5"><input type="radio" name="time" value="2" onclick="ajax_get_fz(2);"><i></i>一个月
                                    </label>
                <label class="i-checks ml5"><input type="radio" name="time" value="3" onclick="ajax_get_fz(3);"><i></i>三个月
                                    </label>
                <label class="i-checks ml5"><input type="radio" name="time" value="4" onclick="ajax_get_fz(4);"><i></i>半年
                                    </label>
				<label class="i-checks ml5"><input type="radio" name="time" value="5" onclick="ajax_get_fz(5);" checked=""><i></i>一年
                                    </label>
            </div>
        </div>
        <hr/>
        <div class="h7" id="fzktjiage">-</div>
        <hr/>
        <div class="t-v">
            <div class="bold pr4">支付方式：</div>
            <div>
			{if condition="config('sys_is_alipay') eq 1"}
				<button class="btn btn-qing btn-md mt2 mb2 mr5 rx1" onclick="ajax_shop_fz('alipay');">
					<i class="icon icon-zfbpay f9 nobold mr2"></i>支付宝 [推荐]
                </button>
			{/if}
			{if condition="config('sys_is_qqpay') eq 1"}
				<button class="btn btn-qing btn-md mt2 mb2 mr5 rx1" onclick="ajax_shop_fz('qqpay');">
					<i class="icon icon-qqpay f9 nobold mr2"></i>QQ支付
                </button>
			{/if}
			{if condition="config('sys_is_wxpay') eq 1"}
				<button class="btn btn-qing btn-md mt2 mb2 mr5 rx1" onclick="ajax_shop_fz('wxpay');">
					<i class="icon icon-wxpay f9 nobold mr2"></i>微信支付
                </button>
			{/if}
            </div>
        </div>
    </div>
</div>
</div>
<div class="c-pagination o-h t-v">
    <div class="c-sidebar"></div>
    <div class="c-content h11 o-h g-page t-v bt bl">
        <div class="col-12 h pl5 t-v f3 hui">系统24小时自动处理订单，支付后自动为您开通秒赞VIP会员，无需等待。</div>
    </div>
</div>
</div>
    </div>
   {/block}
   {block name='foot'}
<script>
    function ajax_get_fz(time) {
        x.ajax('{:url('user_ajax/addfz',['act'=>'price'])}', 'time=' + time);
    }

    function ajax_shop_fz(type) {
		var webname = $("input[name='webname']").val(),
			qz = $("input[name='qz']").val(),
			domain = $("select[name='domain']").val(),
			time = $('input:radio[name="time"]:checked').val();
		if (webname == '' || webname == undefined || webname == null) {
			x.msg('网站名称不能为空！');
		} else if (qz == '' || qz == undefined || qz == null) {
			x.msg('域名前缀不能为空！');
		} else if (time == '' || time == undefined || time == null) {
			x.msg('请选择开通时长！');
		} else {
        x.ajax('{:url('user_ajax/shop',['act'=>'fz'])}', '&shopid=' + time + '&shop=fz&pay_type=' + type +'&webname='+ webname +'&qz='+ qz +'&domain='+ domain);
		}
    }

    $(function ($) {
        ajax_get_fz(5);
    });
</script>
    {/block}